package com.kotlin.heimaplayer.ui.activity

import android.preference.PreferenceManager
import androidx.appcompat.widget.Toolbar
import com.kotlin.heimaplayer.R
import com.kotlin.heimaplayer.base.BaseActivity
import com.kotlin.heimaplayer.util.ToolBarManager
import org.jetbrains.anko.find

class SettingActivity: BaseActivity(),ToolBarManager {
    override val toolbar: Toolbar by lazy { find<Toolbar>(R.id.toolbar) }

    override fun getLayoutId(): Int {
        return R.layout.activity_setting
    }

    override fun initData() {
        initSettingToolbar()

        val sp = PreferenceManager.getDefaultSharedPreferences(this)
        val push = sp.getBoolean("push",false)
        println("$push")

    }
}